package com.yjd.comm.financial.service;

import java.util.HashMap;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.financial.model.FinancialCountModel;

/**
 * <b>description</b>：登陆记录业务接口<br>
 * <b>time</b>：2014-11-18 13:58:44 <br>
 * <b>author</b>：  percy-chen@hotmail.com
 */
public interface IFinancialCountService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public FinancialCountModel insert(FinancialCountModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(FinancialCountModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param date
	 * @return
	 * @throws Exception
	 */
	public int delete(Long date) throws Exception;
	
	/**
	 * 
	* 获取date最大值
	* @return
	* @throws Exception
	 */
	public long getMaxDate() throws Exception;

}
